﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="FileManager.aspx.cs" Inherits="FileManager_FileManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" rel="Stylesheet" href="../css/ScheduleManagerCss.css" />
    <style type="text/css">
        .btnAction
        {
            background-image: url(../imges/zhuandao.jpg);
            background-repeat: no-repeat;
            width: 50px;
        }
        .btnFile
        {
            background-color: #e3e1cc;
            background-image: url(../imges/wenjianjia.jpg);
            background-repeat: no-repeat;
            width: 70px;
            border: none;
        }
        .lbFileName
        {
            text-decoration: none;
        }
        .tree
        {
            text-align: left;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="branchtop">
        <table>
            <tr>
                <td>
                    当前位置
                </td>
                <td>
                    <div class="lbBranch">
                        文档管理</div>
                </td>
            </tr>
        </table>
    </div>
    <hr style="margin-bottom: 8px" />
    <div style="float: left; font-size: 12px; margin-left: 50px;">
        <asp:TreeView ID="TreeView1" CssClass="tree" runat="server" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"
            ShowLines="True">
        </asp:TreeView>
    </div>
    <div style="width: 600px; float: right; margin-right: 30px;">
        <div style="text-align: left; padding-bottom: 5px;">
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/imges/houtui.jpg" />&nbsp;
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/imges/xiangshang.jpg" />&nbsp;|
            <asp:ImageButton ID="imgbtnSerach" CommandName="sou" runat="server" 
                ImageUrl="~/imges/sousuo.jpg" onclick="imgbtnSerach_Click" />
            &nbsp;<asp:Button ID="Button2" runat="server" CssClass="btnFile" Text="" />
            &nbsp;<asp:ImageButton ID="addFolder" runat="server" 
                ImageUrl="~/imges/xinjian.jpg" onclick="addFolder_Click"
                 />&nbsp;<asp:ImageButton ID="imgbtnAdd"
                    runat="server" ImageUrl="~/imges/view.jpg" OnClick="imgbtnAdd_Click" />
        </div>
        <div style="background-color: #a5cfe8; height: 40px; text-align: left; font-size: 14px;
            padding-top: 10px;">
            地址：
            <asp:TextBox ID="txtAddress" runat="server" Width="300px"></asp:TextBox><asp:Image
                ID="Image1" runat="server" ImageUrl="~/imges/file.png" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="" CssClass="btnAction" BackColor="#D3CFC6"
                OnClick="Button1_Click" /></div>
        <div style="font-size: 12px;">
            <asp:GridView ID="GridView1" runat="server" Width="583px" AutoGenerateColumns="False"
                DataKeyNames="FileId" OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting">
                <Columns>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Eval("FileType.FileTypeImage") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("FileType.FileTypeImage") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="名称">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("FileName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="lbFileName" CssClass="lbFileName" CommandName="click" runat="server"
                                Text='<%# Bind("FileName") %>'></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="类型">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("FileType.FileTypeName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("FileType.FileTypeName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Remark" HeaderText="备注" />
                    <asp:BoundField DataField="FileOwner" HeaderText="所有者" />
                    <asp:BoundField DataField="CreateDate" HeaderText="创建日期" />
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgbtnAttrubute" runat="server" CommandName="Att" ImageUrl="~/imges/edit.jpg" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton7" runat="server" ImageUrl="~/imges/open.jpg" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton8" runat="server" CommandName="delete" Height="16px"
                                ImageUrl="~/imges/delete.png" Width="16px" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#66CCFD" ForeColor="White" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
